<template>
  <div class="about">
      <div>
          <input type="text" v-model="key"> <button @click="search">搜索</button>
      </div>
      <div class="con">

      </div>
  </div>
</template>

<script>
export default {
    data(){
        return {
            key:'',
            result:[]
        }
    },
    methods:{
        search(){
            this.$http.get('/api/search',{params:{q:this.key}}).then(res => {
                console.log(res)
            })
        }
    }
}
</script>
